The reasoning: In the current frame, you're inside a birch log. You need to chop a tree, and there are still logs directly ahead. Since the target is in view, the next action is to continue attacking the log to obtain the wood.

If you were not facing any logs, you would need to look around to find them. But here, since there are still reachable logs, proceed with the attack action, next action: attack, and next frame: 